/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package battleship.game.stateMachine;

import battleship.game.StateType;

/**
 *
 * @author ali
 */
public class AbstractStateMachine implements StateMachineType{

    public void executeState(StateType state) {
        state.execute();
        StateType nextstate = state.getNextState();
        executeState(nextstate);
    }

}
